package com.cn.study006;

import java.util.Scanner;

/**
 * @author lw
 * @ClassName Test6002.java
 * @Description
 * @createTime 2023年05月12日 08:02:00
 */
public class Test6002 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个值：");
        int num = sc.nextInt();
        System.out.println("根据这个值可以输出以下加法表：");
        for (int i = 0, j = num; i <= num; i++, j--) {
            System.out.println(i+" + "+j+" = "+(i+j));
        }
    }
}
